   <div class="layui-form-item">
        <label class="layui-form-label">所属分类</label>
        <div class="layui-input-inline">
            <select name="{$name = isset($name)? $name:'';}" lay-filter="cat" lay-search="">
                <option value="">顶层分类</option>
                <volist name="cats" id="vo"> 
                    {$catid = isset($catid)? $catid :''}
                <option value="{$vo.catid}" <if condition="$catid eq $vo.catid">selected='selected'</if>   >
                    <?php if ($vo['level'] != 0) echo '|'; ?><?php echo str_repeat('-', $vo['level']*7)?>{$vo.catname}</option>
                </volist>
            </select>
        </div>
    </div>
